package com.example.sss.model.domin;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.crypto.Data;
import java.util.Date;

public class HeatRecord {
    private Integer id;
    private Integer userId;
    private Integer fileId;
    private Integer hinit;
    private Integer hinteract;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date htime;
    private Integer hweight;
    /**
     * 热度值
     */
    private double heatValue;
    /**
     * 1：下载 2：预览
     */
    private Integer flag;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public double getHeatValue() {
        return heatValue;
    }

    public void setHeatValue(double heatValue) {
        this.heatValue = heatValue;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFileId() {
        return fileId;
    }

    public void setFileId(Integer fileId) {
        this.fileId = fileId;
    }

    public Integer getHinit() {
        return hinit;
    }

    public void setHinit(Integer hinit) {
        this.hinit = hinit;
    }

    public Integer getHinteract() {
        return hinteract;
    }

    public void setHinteract(Integer hinteract) {
        this.hinteract = hinteract;
    }

    public Date getHtime() {
        return htime;
    }

    public void setHtime(Date htime) {
        this.htime = htime;
    }

    public Integer getHweight() {
        return hweight;
    }

    public void setHweight(Integer hweight) {
        this.hweight = hweight;
    }
}
